package com.ruoyi.common.core.domain.heytalk.dto;

import com.ruoyi.common.annotation.heytalk.EnumValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.NonNull;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 申请添加好友入参dto
 * @author zhusy
 * @since 2021/11/1
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@ApiModel("申请添加好友入参DTO")
public class AddFriendDTO {

    @ApiModelProperty(value = "好友ID", name = "friendId", required = true)
    @NotBlank(message = "好友ID不能为空")
    @Size(max = 32, message = "好友ID长度限制32字符以内")
    private String friendId;

    /** 备注 */
    @ApiModelProperty(value = "备注昵称", name = "nickRemark")
    @Size(max = 30, message = "备注长度限制30字符以内")
    private String nickRemark;

    @ApiModelProperty(value = "用户昵称", name = "nickName")
    private String nickName;

    @ApiModelProperty(value = "用户头像地址", name = "avatar")
    private String avatar;

    /** 看我（1不看 0看我） */
    @ApiModelProperty(value = "看我（1不看 0看我）", name = "lookMe", required = true)
    @NotNull(message = "是否看我不能为空")
    @EnumValue(intValues = {0, 1})
    private Integer lookMe;

    /** 看他（1不看 0看他） */
    @ApiModelProperty(value = "看他（1不看 0看他）", name = "lookHim", required = true)
    @NotNull(message = "是否看他不能为空")
    @EnumValue(intValues = {0, 1})
    private Integer lookHim;

}
